package com.jerry.springcloud.bean;

import com.jerry.springcloud.enums.OrderStatusEnum;
import com.jerry.springcloud.enums.PayStatusEnum;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class Order {

    private String id;              //订单id
    private String buyerId;         //买家id
    private String buyerName;       //买家姓名
    private String buyerPhone;      //买家手机
    private String buyerAddress;    //买家地址
    private BigDecimal amount;      //订单总金额
    private Integer status = OrderStatusEnum.NEW.getCode();         //订单状态, 默认为0新下单
    private Integer payStatus = PayStatusEnum.WAIT.getCode();       //支付状态, 默认为0未支付

}
